# $Id: PKGBUILD 65930 2012-02-22 13:45:36Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+aur@gmail.com>

pkgname=perl-template-gd
pkgver=2.66
pkgrel=3
pkgdesc="GD plugin(s) for the Template Toolkit"
arch=('any')
url="http://search.cpan.org/dist/Template-GD"
license=('GPL' 'PerlArtistic')
depends=('perl-template-toolkit>=2.14' 'perl-gd>=1.14')
options=('!emptydirs')
source=(http://www.cpan.org/authors/id/A/AB/ABW/Template-GD-$pkgver.tar.gz)
md5sums=('9052bef9bd799e143990e67422c14b81')

build() {
  cd  $srcdir/Template-GD-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
  make install DESTDIR=$pkgdir
  find $pkgdir -name '.packlist' -delete
  find $pkgdir -name '*.pod' -delete
}
